import request from "@/utils/request";
import cfg from "@/config/config";

const ztBanCiTime = {
  //获取消费时段列表
  getXfTimeList: param => {
    return request("post", cfg.apiUrl + "api/ztBanCiTime/getXfTimeList", param);
  },

  /**方法savaBdBanCiTime
   * 保存班次与时段
   * @param ztBanCiTimeDto id 班次与时段iD
   * @param ztBanCiTimeDto banCiId 班次ID
   * @param ztBanCiTimeDto bh 消费时段ID(xx,xx,xx,xx)
   * @param request
   * @return
   * @throws UnknownHostException
   */
  savaBdBanCiTime: param => {
    return request(
      "post",
      cfg.apiUrl + "api/ztBanCiTime/savaBdBanCiTime",
      param
    );
  },

  /**方法deleteBanciTime
   * 删除消费时段与班次
   * @param ztBanCiTimeDto id 班次关联消费时段记录表ID
   * @param request
   * @return
   * @throws UnknownHostException
   */
  deleteBanciTime: param => {
    return request(
      "post",
      cfg.apiUrl + "api/ztBanCiTime/deleteBanciTime",
      param
    );
  }
};

export default ztBanCiTime;
